<?php
###############   COPYLEFT GPLv3 LICENSE   ###############
##
## JFX Version 0.2.9
## Website Management Software
## www.jfxcms.com
##
## Copyright 2009 GPLv3 - http://www.opensource.org/licenses/gpl-3.0.html
##
## Anthony Gallon
## oi_antz@hotmail.com
##
## Permission is hereby granted to any person having a copy of this software
## to freely use and modify as required so long as the copyright notices
## and branding remain intact.
##
## Full license details available at http://www.jfxcms.com/license
##
###############   COPYLEFT GPLv3 LICENSE   ###############

class JFX_Module_Blockstyle_Property_Textdecoration extends JFX_Module_Blockstyle_Property_Base
{
	public $id = 'text-decoration';
	public $cssName = 'text-decoration';
	public $title = 'Text Decoration';
	public $instanceId = 'block-textdecoration-0';



	public function init(){



		$decorationWidget = new JFX_Module_Blockstyle_Widget_Multi($this);
		$decorationWidget->instanceId = $this->instanceId.'-textdecoration';
		$decorationWidget->name = 'Text Decoration';
		$decorationWidget->addOption('Overline', 'overline');
		$decorationWidget->addOption('Line Through', 'line-through');
		$decorationWidget->addOption('Underline', 'underline');
		$decorationWidget->addOption('Blink', 'blink');
		$decorationWidget->addOption('None', 'none');

		$decorationWidget->multiple = false;
		$decorationWidget->cssName = 'text-decoration';
		$decorationWidget->values[] = 'none';
		$this->widgets[] = $decorationWidget;


	}

	public function getCssValue(){


	}


	public function setPropertyFromJson($k, $v){
		if(!in_array($k, $this->privateProperties)){
			$this->$k = $v;
		}

		try{

		}catch(Exception $e){
			JFX::addError('Cant add the '.$k);

		}

	}



}

